package com.xxgc.cloud.auth.springcloudauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxgc.cloud.api.jwt.IUserAuthInfo;
import com.xxgc.cloud.auth.springcloudauth.entity.Users;
import com.xxgc.cloud.auth.springcloudauth.mapper.UsersMapper;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @program: SpringCloudStudy
 * @description: 用于网关使用 来从认证中心获取用户信息
 * @author: Mr.abel(ShiJiaYi)
 * @create: 2022-11-30 16:47
 **/
@DubboService(interfaceClass = IUserAuthInfo.class,version = "1.0.0")
public class UserAuthInfoImpl extends ServiceImpl<UsersMapper, Users> implements IUserAuthInfo {
    @Override
    public Boolean selectUserLockingById(Integer userId) {
        Users users = baseMapper.selectById(userId);
        return users.getLocking();
    }
}
